﻿/****************
* Authored by Zhuo "Wizcas" Chen
* 2018 © Wubi.fun all rights reserved
*****************/

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class MergeRequestUI : MonoBehaviour 
{
    //[SerializeField] ResItem _itemPrefab;
    //[SerializeField] float _interval;

    //RectTransform rectTransform { get { return transform as RectTransform; } }
    //Dictionary<int, int> _stackPopCounter = new Dictionary<int, int>();

    //public void Pop(Res res, MergeRequest mr)
    //{
    //    var uiPos = UIHelper.WorldToUIPos(mr.transform.position, rectTransform);
    //    var item = Instantiate(_itemPrefab, transform);

    //    int counter = 0;
    //    if (!_stackPopCounter.ContainsKey(stack.id)) { _stackPopCounter[stack.id] = 1; }
    //    else { counter = _stackPopCounter[stack.id]++; }
    //    item.Pop(res, uiPos, counter * _interval).OnComplete(() => _stackPopCounter[stack.id]--);
    //}
}
